home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form SessionForm
- BackColor = &H00C0C0C0&
- Caption = "Mail X Example Read Msg"
- ClientHeight = 4020
- ClientLeft = 1395
- ClientTop = 1650
- ClientWidth = 5490
- Height = 4395
- Left = 1350
- LinkTopic = "Form2"
- ScaleHeight = 4020
- ScaleWidth = 5490
- Top = 1320
- Width = 5580
- Begin MMsg MMsg1
- BindString = "MSess1"
- BodyAsFile = 0 'False
- DisplayErrors = 0 'False
- DisplaySendDialog= 0 'False
- EnvelopeOnly = 0 'False
- FetchMsgType = ""
- Height = 420
- Left = 2520
- MarkAsRead = 0 'False
- SortMsg = 0 'False
- SuppressAttach = -1 'True
- TimeFormat = "%m/%d/%y"
- Top = 3480
- UnreadOnly = 0 'False
- Width = 420
- WorkingMsg = 0 '0- Inbox Message
- End
- Begin MSess MSess1
- DefaultPath = ""
- DisplayErrors = -1 'True
- DownLoadMsg = -1 'True
- Height = 420
- Left = 120
- LogonUI = -1 'True
- Mail_Type = 0 '0- NONE
- MapiCustomLibName= ""
- NewSession = -1 'True
- Password = ""
- Top = 3480
- User = ""
- Width = 420
- End
- Begin MForm MForm1
- Height = 255
- Left = 3480
- MXFormName = "FormTag2"
- Top = 3720
- Width = 1815
- End
- Begin CommandButton BtnOpen
- Caption = "Open Msg"
- Height = 375
- Left = 3120
- TabIndex = 2
- Top = 3480
- Width = 1335
- End
- Begin CommandButton BtnEnd
- Caption = "End"
- Height = 375
- Left = 1080
- TabIndex = 1
- Top = 3480
- Width = 1335
- End
- Begin SSPanel Panel3D1
- BackColor = &H00C0C0C0&
- BevelInner = 1 'Inset
- BorderWidth = 5
- Font3D = 0 'None
- Height = 3300
- Left = 180
- TabIndex = 0
- Top = 75
- Width = 5130
- Begin ListBox MsgList
- Height = 2955
- Left = 165
- TabIndex = 3
- Top = 150
- Width = 4830
- End
- End
- Sub BtnEnd_Click ()
- End
- End Sub
- Sub BtnOpen_Click ()
- Index = MsgList.ListIndex
- If Index <> -1 Then
- Load MsgForm
- MsgForm.MMsg1.FetchMsg = Index + 1
- MsgForm.szSubject = MsgForm.MMsg1.Subject
- MsgForm.szNoteText = MsgForm.MMsg1.NoteText
- MsgForm.szTime = MsgForm.MMsg1.TimeReceived
- MsgForm.szMsgID = MsgForm.MMsg1.MsgID
- MsgForm.MReci1.FetchRecipient = True
- MsgForm.szOriginator = MsgForm.MReci1.RecipientName
- MsgForm.MFile1.FetchFile = True
- FileNum = MsgForm.MFile1.FileCount
- For Index = 1 To FileNum
- MsgForm.MFile1.FileNum = Index
- MsgForm.szFileList.AddItem MsgForm.MFile1.FileName
- Next
- If FileNum > 0 Then MsgForm.szFileList.ListIndex = 0
- MsgForm.Show 1
- Else
- MsgBox "Select a Mail Message"
- End If
- End Sub
- Sub Command2_Click ()
- End Sub
- Sub Form_Load ()
- Load SystemX
- SystemX.MSMAIL = True
- SystemX.Show 1
- MSess1.Logon = True
- If MSess1.Logon = False Then End
- SessionForm.MousePointer = 11
- MsgList.Clear
- MMsg1.Action = ACTION_FINDFIRST
- Do
- If MMsg1.FetchMsg <> 0 Then
- MsgList.AddItem MMsg1.Subject
- MMsg1.Action = ACTION_FINDNEXT
- End If
- Loop While MMsg1.FetchMsg <> 0
- SessionForm.MousePointer = 1
- End Sub
-